<template>
		<input v-model="vue_model" type="hidden"/>
</template>

<script>
	import utils from '@/utils/utils.js';
	export default {
		name:"HiddenComponent",
		props:["componentModel"],
		data() {
			return {
				vue_model:""
			}
		},
		inject:['children'],
		mounted() {
			this.children.push(this);
		},beforeUnmount() {
			utils.removeArrayElement(this.children,this);
		},methods:{
			getValue(){
				return this.vue_model;
			},setProp(prop) {
				for(var k in prop){
					if(k=="value"){
						if(prop[k]==null){
							this.vue_model="";
						}else{
							this.vue_model=prop[k];
						}
					}
				}
			}
		}
	}
</script>

<style>
</style>